package com.sh.service.permission;

import com.sh.entity.UserPermission;
import com.sh.pojo.bo.UpdatePermissionBO;
import com.sh.pojo.dto.PermissionCacheDTO;
import com.sh.pojo.dto.ResourceTreeDTO;

import java.util.List;

public interface IUserPermissionService {
    List<UserPermission> getAllUserPermission();

    List<ResourceTreeDTO> getUserPermissionByBucket(String userId, String bucket,String path);

    void setUserPermission(UpdatePermissionBO bo);

    List<String> listBucketByUser(String userId);

    PermissionCacheDTO getUserPermissionByPath(String userId,String bucket,String path);

    List<String> getUserMaxPermission(String bucket);
}
